import numpy as np
project_name=__name__.split('.')[-1]
# 时间数组
t_array_target = np.linspace(0.0, 20.0, 30)  # 从0到20秒，生成30个点


# 圆弧参数
p_min = 10e6  # 最小压力
p_max = 15e6  # 最大压力
t_center = 10.0  # 时间中心点
t_radius = 10.0  # 时间半径

# 生成圆弧形状的p~t曲线
p_array_target = p_min + (p_max - p_min) * np.sqrt(1 - ((t_array_target - t_center) / t_radius) ** 2)

t_array_target=np.append(t_array_target,21.0)
p_array_target=np.append(p_array_target,0.0)

cstar = 1580
rho = 1780
n = 0.35
At = 0.01